<div class="container">
	<form class="form-horizontal" role="form" method="post" action="<?= site_url() ?>work_facility/insert_rga"> 
	<div class="col-md-offset-1">
		<div class="col-md-11">
			<div class="panel panel-default">
				<div class="panel-heading"><h4 class="panel-title"><b class="caret"></b><b> Request By</b></h4></div>
				<div class="panel-body">
					<div class="col-xs-12 col-md-6">
						<div class="form-group">
							<label class="control-label col-md-4">Name<span style="color:red;">*</span></label>
							<div class="col-md-7"><input type="text" value="" id="r_name" class="select2 form-control input-sm">
							<input type="hidden" value="" id="r_nama" name="r_nama" class="select2 form-control input-sm" readonly="true" /></div>
						</div>					
						<div class="form-group">
							<label class="control-label col-md-4">ID Number</label>
							<div class="col-md-3"><input type="text" value="" id="r_id" class="form-control input-sm" readonly /></div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-4">Manager</label>
							<div class="col-md-7"><input type="text" value="" id="r_mgr" class="form-control input-sm" readonly />
							<input type="hidden" value="" id="r_mgrid" class="form-control input-sm" readonly="true"/></div>
						</div>
					</div>
					<div class="col-sm-7 col-md-6">
						<div class="form-group">
							<label class="control-label col-md-4">Departement</label>
							<div class="col-md-7"><input type="text" value="" id="r_dept" class="form-control input-sm" readonly /></div>
						</div>
						<div class="form-group">
							<label class="control-label col-md-4">Job Position</label>
							<div class="col-md-8"><input type="text" value="" id="r_job" class="form-control input-sm" readonly /></div>
						</div>
					</div>
				</div>
			</div>
			<div class="panel panel-default">
				<div class="panel-heading">
					<h4 class="panel-title"><b class="caret"></b><b> Form</b></h4>
				</div>
				<div class="panel-body">
					<div class="col-sm-7 col-md-6">
						<div class="form-group">
							<label class="control-label col-md-3">Description<span style="color:red;">*</span></label>
						<div class="col-md-7"><textarea name="pReqDescription" id="pReqDescription" type="text" class="form-control input-sm" cols="50" rows="3"></textarea></div>
						</div>
					</div>
					<div class="col-sm-7 col-md-6">
						<div class="form-group">
							<label class="control-label col-md-5">Informasi HRD<span style="color:red;">*</span></label>
							<div class="col-md-7"><textarea name="pReqInfoHrd" id="pReqInfoHrd" type="text" class="form-control input-sm" cols="50" rows="3"></textarea></div>
						</div>						
					</div>
					<div class="col-md-12" style="margin-top:40px;">
						<div class="form-group" style="text-align:center">
							<input type="submit" value="Save This Form" name="submit" onclick="return cekDulu(this);" class="btn btn-md btn-success" />
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	</form>
</div>

<script type="text/javascript">
	function cekDulu(elm)
	{
		$r_nama = $('#r_nama').val();
		if ($r_nama==""){alert('Requestor tidak boleh kosong!'); document.getElementById('r_nama').focus(); return false;}
		
		$pReqDescription = $('#pReqDescription').val();
		if ($pReqDescription==""){alert('Description tidak boleh kosong!'); document.getElementById('pReqDescription').focus(); return false;}
		
		$pReqInfoHrd = $('#pReqInfoHrd').val();
		if ($pReqInfoHrd==""){alert('Informasi HRD tidak boleh kosong!'); document.getElementById('pReqInfoHrd').focus(); return false;}
	}
</script>
